package com.course.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.course.component.auth.TokenBase;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/*
@author By 林中小鸟
@package  com.self.introduction.mapper
@create 2021 - 09 - 2021\9\23 0023
@QQ: 357182695
@Em: themooncss@gmail.com
*/
@TableName("user")
@Data
public class User extends TokenBase  {
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.INPUT)
    private Long id;
    @TableField(value = "account",condition = SqlCondition.LIKE)
    private String account;
    @TableField(value = "password")
    private String password;
    @TableField("age")
    private String age;
    @TableField("description")
    private String description;
}
